package com.api

/*
使用case class不用重写equals方法可进行值判断 有get set 方法
 */
case class Human(var name:String ,age:Int)
// class Human(name:String ,age:Int)


object caseClass {
  def main(args: Array[String]): Unit = {
    val h1=new Human("zhangsan",18)
    val h2=new Human("zhangsan",18)

    println(h1.equals(h2))
  }
}
